package com.funny.springcloud.alibaba.feign;

import com.funny.springcloud.alibaba.feign.fallback.PaymentFeignServerFallback;
import com.funny.springcloud.entities.Payment;
import com.funny.springcloud.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author FUNNYWUS
 * @date 2020/7/29
 */
@FeignClient(value = "nacos-payment-provider", fallback = PaymentFeignServerFallback.class)
public interface PaymentFeignService {

    @GetMapping(value = "/paymentSQL/{id}")
    R<Payment> paymentSQL(@PathVariable("id") Long id);

}
